import request from '@/utils/request'
// 获取用户目录
export function getUserListAPI(params) {
  return request({
    url: '/auth/user',
    method: 'get',
    params
  })
}
// 新增用户请求
export function addUserAPI(data) {
  return request({
    url: '/auth/user',
    method: 'post',
    data
  })
}
// 删除请求
export function delUserAPI(id) {
  return request({
    url: '/auth/user/' + id,
    method: 'delete'
  })
}
// 表单回显
export function getUserInfoAPI(id) {
  return request({
    url: '/auth/user/' + id,
    method: 'get'
  })
}
// 编辑请求
export function editUserInfoAPI(data) {
  return request({
    url: '/auth/user/' + data.id,
    method: 'put',
    data
  })
}
